#include<iostream>

#include<string>
#include<jsoncpp/json/json.h>


int main()
{
    int a = 20;
    int b = 10;
    char c = '+';
    Json::Value root;
    root["aa"] =a;


    Json::Value sub;
    sub["other"] = 200;
    sub["other1"] = "nihao";
    root["sub"] = sub;


    root["bb"] = b;
    root["op"] = c;
    Json::StyledWriter writer;
    // Json::FastWriter writer;
    std::string s= writer.write(root);
    std::cout<<s<<std::endl;

    return 0;
}